Skip to content

docs(README): fix token format, create-flag, and MCP install drift#26

Merged
caballeto merged 1 commit into
mainfrom
docs/token-format-and-flag-drift
May 5, 2026
Merged

docs(README): fix token format, create-flag, and MCP install drift#26
caballeto merged 1 commit into
mainfrom
docs/token-format-and-flag-drift

Conversation

@caballeto
Copy link
Copy Markdown
Member

Summary

Five small docs/reality drifts surfaced by a fresh-user DevEx agent run that follows only public docs:

1. Token format examples used Stripe-style `sk_live_` prefix

The README's auth-login, env-var, and staging-context examples all used `sk_live_…` / `sk_test_…`, but the API issues `dh_live_…` / `dh_test_…` (verified against a real prod token). Updated three call sites:

  • `devhelm auth login --token sk_live_...` → `dh_live_...`
  • `export DEVHELM_API_TOKEN=sk_live_...` → `dh_live_...`
  • `devhelm auth context create staging --token sk_test_...` → `dh_test_...`

2. `monitors create` example used a flag that doesn't exist

The example used `--interval 30`, but the actual flag exposed by `src/lib/resources.ts` is `--frequency`. The example as written errors with `Nonexistent flag: --interval`. Bumped the example value to `60` (the API minimum for HTTP monitors).

3. AI-Agents section advertised the wrong MCP install

`npm install -g @devhelm/mcp-server` — but the MCP server has only ever shipped as the Python package `devhelm-mcp-server` on PyPI, not on npm. Updated to `pip install devhelm-mcp-server` with a `uvx devhelm-mcp-server` no-install alternative. Same identity-drift fix as devhelmhq/mono#358.

Test plan

  • No code changes — README only
  • `npm run lint` passes (no source touched)
  • All token examples now use `dh_live_` / `dh_test_` matching real API output
  • `--frequency 60` matches the flag definition in `src/lib/resources.ts`
  • MCP install instruction matches reality (PyPI, not npm)

Refs: pre-launch DevEx agent reports — synthesis at `/tmp/devex-cli-test/SYNTHESIS.md`

Made with Cursor

Five small docs/reality drifts surfaced by a fresh-user devex agent
run that follows only public docs:

1. Token examples used `sk_live_...` / `sk_test_...` — these are
   Stripe-style prefixes that don't match what the API actually issues.
   Real DevHelm tokens are `dh_live_...` / `dh_test_...` (verified
   against a working prod token). Updated three call sites:
   - `devhelm auth login --token sk_live_...`
   - `export DEVHELM_API_TOKEN=sk_live_...`
   - `devhelm auth context create staging --token sk_test_...`

2. `monitors create` example used `--interval 30`, but the actual
   flag exposed by `src/lib/resources.ts` is `--frequency`. The
   example as written errors with `Nonexistent flag: --interval`.
   Bumped the example value to 60s while I was there (the API minimum
   for HTTP monitors).

3. The "AI Agents" section advertised `npm install -g @devhelm/mcp-server`,
   but the MCP server has only ever shipped as the Python package
   `devhelm-mcp-server` on PyPI (not on npm). Updated to
   `pip install devhelm-mcp-server` (with a `uvx devhelm-mcp-server`
   no-install alternative). Same identity-drift fix as
   devhelmhq/mono#358.

No code changes — README only. Refs: pre-launch DevEx agent reports.

Co-authored-by: Cursor <cursoragent@cursor.com>
@caballeto caballeto merged commit ca78a54 into main May 5, 2026
3 checks passed
@caballeto caballeto deleted the docs/token-format-and-flag-drift branch May 5, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant